package com.xinda.admin.service;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.xinda.admin.dao.CountMapper;
import com.xinda.admin.vo.CountNumVO;
import com.xinda.admin.vo.LastLoginVO;

/**
* @author 作者 E-mail:
* @version 创建时间：2017年9月2日 上午11:06:17
* 欢迎界面统计数据
*/
@Service
public class CountService {
	@Resource
	private CountMapper countMapper;
	
	public LastLoginVO lastLogin(Integer id) {
		return countMapper.lastLogin(id);
	}
	
	
	/**
	 * 查询多个表记录总数
	 * @return
	 */
	public CountNumVO countNum() {
		return countMapper.countNum();
	}
	
	/**
	 * 查询当天记录数
	 */
	public CountNumVO countNumToday() {
		return countMapper.countNumToday();
	}
	
	/**
	 * 查询昨天记录数
	 */
	public CountNumVO countNumYesterday() {
		return countMapper.countNumYesterday();
	}
	
	/**
	 * 查询本周记录数
	 */
	public CountNumVO countNumWeek() {
		return countMapper.countNumWeek();
	}
	
	/**
	 * 查询本月记录数
	 */
	public CountNumVO countNumMonth() {
		return countMapper.countNumMonth();
	}
}
